package com.design.yjx.factory;

/**
 * @author yuanjianxin
 * @date 2017/8/3 15:12
 * 披萨超类
 */
public abstract class Pizza {
     String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void prepare() {
        System.out.println("准备..." + name);
    }

    public void bake() {
        System.out.println("烘烤...");
    }

    public void cut() {
        System.out.println("切片...");
    }

    public void box() {
        System.out.println("打包...");
    }


}
